#include <cmath>
#include <iostream>

int main()
{
    // test codes of built-in functions `std::exp` & `std::tanh`
    // These two built-in functions must include `cmath` head file
    /*
    const float in_value = 2.333;
    const float out1 = std::exp(in_value);
    const float out2 = std::tanh(in_value);
    */
    /*
    float res_1 = 233.33;
    res_1 *= res_1;
    float lib_res;

    float res_2 = 233.66;
    lib_res = sqrt(res_2);  // The C/C++ sqrt function in cmath library
    std::cout << "The value of `res_1` with square operation (without any libs) is " << res_1 << std::endl;
    std::cout << "The value of `res_2` with square root operation (with cmath lib) is:" << lib_res << std::endl;
    */

    /*
    int a = 3, b = 2;
    int res;
    res = a / b;
    std::cout << "The value of res is " << res << std::endl;
    */

    for (int i = 9 / 2; i >= 0; i--)
    {
        std::cout << "The value of i is " << i << std::endl;
        if ( i / 2 == 1)
        {
            std::cout << "Another test, the value of i is " << i << std::endl;
        }
    }

    return 0;
}
